package cn.yunyichina.provider.base.service.impl;

import cn.yunyichina.provider.base.dao.RulePushDao;
import cn.yunyichina.provider.base.dao.RuleQueryDao;
import cn.yunyichina.provider.base.entity.Api;
import cn.yunyichina.provider.base.entity.RulePush;
import cn.yunyichina.provider.base.entity.RuleQuery;
import cn.yunyichina.utils.convert.JsonUtils;
import com.alibaba.fastjson.JSON;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * Created by Administrator on 2016/9/2.
 */
@Service
public class RulePushServiceImpl {
    @Autowired
    private RulePushDao dao;


    public RulePush findRulePushByHospitalId(String data) {
        Map map =  JSON.parseObject(data, Map.class);
        return dao.findByHospitalId(map);
    }
}
